/* eslint-disable */
import axios from './axios'
import qs from 'qs'
import { baseUrl } from '@/config/config'
// 获取类别列表 /bdc/api/app/system/aggregateMenusList
export const aggregateMenusList = (params) => {
        return new Promise((resolve, reject) => {
            axios({
                url: baseUrl + '/bdc/api/app/system/aggregateMenusList',
                method: 'get',
                params
            }).then(res => {
                resolve(res.data)
            }).catch(error => {
                reject(error)
            })
        })
    }
    // 新增类别 /bdc/api/app/system/aggregateMenus
export const addAggregateMenus = (params) => {
        return new Promise((resolve, reject) => {
            axios({
                url: baseUrl + '/bdc/api/app/system/aggregateMenus',
                method: 'post',
                data: params
            }).then(res => {
                resolve(res.data)
            }).catch(error => {
                reject(error)
            })
        })
    }
    // 修改类别 /bdc/api/app/system/aggregateMenus
export const editAggregateMenus = (params) => {
        return new Promise((resolve, reject) => {
            axios({
                url: baseUrl + '/bdc/api/app/system/aggregateMenus',
                method: 'put',
                data: params
            }).then(res => {
                resolve(res.data)
            }).catch(error => {
                reject(error)
            })
        })
    }
    // 删除类别 /bdc/api/app/system/aggregateMenus
export const delAggregateMenus = (params) => {
    return new Promise((resolve, reject) => {
        axios({
            url: baseUrl + '/bdc/api/app/system/' + params.id + '/aggregateMenus',
            method: 'delete'
        }).then(res => {
            resolve(res.data)
        }).catch(error => {
            reject(error)
        })
    })
}